package com.balloon.springboot.datasource.prorperties;


/**
 * 动态数据源高级配置
 *
 * @author liaofuxing
 * @data 2021/9/18
 */
public class Conf {

    /**
     * 是否从数据库加载数据源配置文件 [true,false]
     */
    private Boolean initializeDatasourceByDb;

    /**
     * 是否允许在没有找到可用数据源时使用默认数据源 [true,false]
     */
    private Boolean useDefaultDatasource;

    /**
     * 连接池最小连接数
     */
    private Integer minldle;

    /**
     * 连接池最大连接数
     */
    private Integer maxPoolSize;

    /**
     * 连接最大存活时间
     */
    private Integer maxLifeTime;

    /**
     * 连接超时时间
     */
    private Integer connectionTimeout;

    public Boolean getInitializeDatasourceByDb() {
        return initializeDatasourceByDb;
    }

    public void setInitializeDatasourceByDb(Boolean initializeDatasourceByDb) {
        this.initializeDatasourceByDb = initializeDatasourceByDb;
    }

    public Boolean getUseDefaultDatasource() {
        return useDefaultDatasource;
    }

    public void setUseDefaultDatasource(Boolean useDefaultDatasource) {
        this.useDefaultDatasource = useDefaultDatasource;
    }

    public Integer getMinldle() {
        return minldle;
    }

    public void setMinldle(Integer minldle) {
        this.minldle = minldle;
    }

    public Integer getMaxPoolSize() {
        return maxPoolSize;
    }

    public void setMaxPoolSize(Integer maxPoolSize) {
        this.maxPoolSize = maxPoolSize;
    }

    public Integer getMaxLifeTime() {
        return maxLifeTime;
    }

    public void setMaxLifeTime(Integer maxLifeTime) {
        this.maxLifeTime = maxLifeTime;
    }

    public Integer getConnectionTimeout() {
        return connectionTimeout;
    }

    public void setConnectionTimeout(Integer connectionTimeout) {
        this.connectionTimeout = connectionTimeout;
    }


}
